<!--手风琴-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../../utils/css/bootstrap.min.css" />
    <script src="../../utils/jquery/jquery.3.7.min.js"></script>
    <script src="../../utils/js/bootstrap.bundle.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        img {
            display: block;
        }

        ul {
            list-style: none;
        }

        .king {
            width: 852px;
            margin: 100px auto;
            background: url(../assets/images/bg.png) no-repeat;
            overflow: hidden;
            padding: 10px;
        }

        .king ul {
            overflow: hidden;
        }

        .king li {
            position: relative;
            float: left;
            width: 69px;
            height: 69px;
            margin-right: 10px;
        }

        .big {
            width: 224px;
            display: none;
        }

        .small {
            position: absolute;
            top: 0;
            left: 0;
            width: 69px;
            height: 69px;
            border-radius: 5px;
        }

        .king li.current {
            width: 224px;
        }

        .king li.current .big {
            display: block;
        }

        .king li.current .small {
            display: none;
        }
    </style>
</head>
<body>
<div class="king">
    <ul>
        <li class="current">
            <a href="#">
                <img src="../assets/images/m1.jpg" alt="" class="small">
                <img src="../assets/images/m.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/l1.jpg" alt="" class="small">
                <img src="../assets/images/l.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/c1.jpg" alt="" class="small">
                <img src="../assets/images/c.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/w1.jpg" alt="" class="small">
                <img src="../assets/images/w.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/z1.jpg" alt="" class="small">
                <img src="../assets/images/z.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/h1.jpg" alt="" class="small">
                <img src="../assets/images/h.png" alt="" class="big">
            </a>
        </li>
        <li>
            <a href="#">
                <img src="../assets/images/t1.jpg" alt="" class="small">
                <img src="../assets/images/t.png" alt="" class="big">
            </a>
        </li>
    </ul>
</div>
<script type="text/javascript">
    $(function () {
        $(".king li").hover(function () {
            $(this).animate({
                width:224
            }).find(".small").fadeOut().siblings(".big").fadeIn();
            $(this).siblings('li').animate({
                width:69
            }).find(".small").fadeIn().siblings(".big").fadeOut();
        });
    });
</script>
</body>
</html>